cursor docs: Point to gtk_widget_set_cursor
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 Dec 2017 19:04:33 +0000 (14:04 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 Dec 2017 19:39:49 +0000 (14:39 -0500)
This is the right API to use for applications.

gdk/gdkcursor.c

index d5e03d7c65d3c25f65ea2faa5bfdcd963cabbb12..57a80fc83719768c2ee01ee11476036566ed76cd 100644 (file)
@@ -48,7 +48,9 @@
  *
  * Cursors by themselves are not very interesting, they must be
  * bound to a window for users to see them. This is done with
- * gdk_window_set_cursor(). 
+ * gdk_window_set_cursor() or gdk_window_set_device_cursor().
+ * Applications will typically use higher-level GTK+ functions such
+ * as gtk_widget_set_cursor() instead.
  *
  * Cursors are not bound to a given #GdkDisplay, so they can be shared.
  * However, the appearance of cursors may vary when used on different
@@ -57,7 +59,7 @@
  * There are multiple ways to create cursors. The platform's own cursors
  * can be created with gdk_cursor_new_from_name(). That function lists
  * the commonly available names that are shared with the CSS specification.
- * Other names may be available, depending on the platform in use.  
+ * Other names may be available, depending on the platform in use.
  * Another option to create a cursor is to use gdk_cursor_new_from_texture()
  * and provide an image to use for the cursor. Depending on the #GdkDisplay
  * in use, the type of supported images may be limited. See